What will be the output of the following Python code? x = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is now', x)
1.x is 50 Changed local x to 2 x is now 50
2.x is 50 Changed local x to 2 x is now 2
3.x is 50 Changed local x to 2 x is now 100
4.none of the mentioned
Posted Date:-2022-01-01 18:09:02